/* Word popover styles */
.bcz-helper-word-popover {
  font-family: Arial, sans-serif;
  width: 360px;
  padding: 10px;
  border: 1px solid #c0c0c0;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bcz-helper-word-popover.dark-theme {
  background-color: #1a1a1a;
  border: 1px solid #1a1a1a;
}

.bcz-helper-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2em;
  font-weight: bold;
  font-family: inherit;
  margin-bottom: 5px;
}

.bcz-helper-word {
  font-size: 24px;
  margin: 0px;
  font-weight: 600;
  color: #2c3e50;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.dark-theme .bcz-helper-word {
  color: #e0e0e0;
}

.bcz-helper-favorite-icon {
  cursor: pointer;
  font-size: 1.2em;
}

.bcz-helper-pronunciation-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 16px;
  color: #6c757d;
  font-family: inherit;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 5px;
}

.bcz-helper-pronunciation {
  color: #6c757d;
  font-size: 16px;
  font-family: inherit;
  font-weight: 400;
  line-height: 1.3;
}

.dark-theme .bcz-helper-pronunciation {
  color: #e0e0e0;
}

.bcz-helper-definition-row {
  font-size: 15px;
  font-family: inherit;
  color: #343a40;
  line-height: 1.5;
  font-weight: 400;
}

.dark-theme .bcz-helper-definition-row {
  color: #b0b0b0;
}

.bcz-helper-definition-row p {
  margin: 0.25rem 0;
  font-size: 15px;
  line-height: 1.5;
}

.bcz-helper-definition-row strong {
  font-weight: 600;
}

/* Tips 组件样式 */
.bcz-helper-tips {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  text-align: center;
  z-index: 9999;
  min-width: 10ch;
  max-width: 20ch;
  word-wrap: break-word;
  word-break: break-all;
  line-height: 1.4;
}

/* ErrorPopover 组件样式 */
.bcz-helper-error-popover {
  width: 200px;
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: white;
  color: black;
  font-weight: bold;
  border: 1px solid #c0c0c0;
  border-radius: 8px;
  box-sizing: border-box;
}

.bcz-helper-login-link {
  cursor: pointer;
  color: #1976d2;
  text-decoration: underline;
}

.bcz-helper-pronunciation-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.bcz-helper-pronunciation-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 14px;
  color: #495057;
  font-weight: 500;
  line-height: 1.4;
}

.dark-theme .bcz-helper-pronunciation-item {
  color: #e0e0e0;
}

.bcz-helper-separator {
  border: none;
  border-top: 1px solid #eee;
  margin: 5px 0;
}

.bcz-helper-example-sentence-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  justify-content: space-between;
  font-family: inherit;
  color: #495057;
  font-weight: 400;
  line-height: 1.4;
}

.dark-theme .bcz-helper-example-sentence-row {
  color: #e0e0e0;
}

.bcz-helper-example-sentence-row .bcz-helper-sentence {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  font-style: italic;
}

.bcz-helper-pronounce-sentence-icon {
  cursor: pointer;
  color: #007bff;
}

.bcz-helper-example-translation-row {
  color: #6c757d;
  font-size: 14px;
  font-family: inherit;
  font-weight: 400;
  line-height: 1.4;
}

.dark-theme .bcz-helper-example-translation-row {
  color: #e0e0e0;
}

.bcz-helper-example-translation-row .bcz-helper-translation {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.bcz-helper-example-image-row { 
  max-width: 100%;
  object-fit: contain;
}

.bcz-helper-example-image {
  max-width: 300px;
  height: auto;
  border-radius: 4px;
  margin-top: 5px;
}

.bcz-helper-fontawesome-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  cursor: pointer;
}